Optimal. Leaf size=269 \[ -\frac{1}{32} \log \left (x^2-x+1\right ) (9 d-4 f+3 h)+\frac{1}{32} \log \left (x^2+x+1\right ) (9 d-4 f+3 h)+\frac{x \left (x^2 (-(7 d-7 f+4 h))+2 d+3 f-h\right )}{24 \left (x^4+x^2+1\right )}+\frac{x \left (x^2 (-(d-2 f+h))+d+f-2 h\right )}{12 \left (x^4+x^2+1\right )^2}-\frac{\tan ^{-1}\left (\frac{1-2 x}{\sqrt{3}}\right ) (13 d+2 f+h)}{48 \sqrt{3}}+\frac{\tan ^{-1}\left (\frac{2 x+1}{\sqrt{3}}\right ) (13 d+2 f+h)}{48 \sqrt{3}}+\frac{\tan ^{-1}\left (\frac{2 x^2+1}{\sqrt{3}}\right ) (2 e-g+i)}{3 \sqrt{3}}+\frac{\left (2 x^2+1\right ) (2 e-g+i)}{12 \left (x^4+x^2+1\right )}+\frac{x^2 (2 e-g-i)+e-2 g+i}{12 \left (x^4+x^2+1\right )^2} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.629288, antiderivative size = 269, normalized size of antiderivative = 1., number of steps used = 18, number of rules used = 12, integrand size = 36, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333 \[ -\frac{1}{32} \log \left (x^2-x+1\right ) (9 d-4 f+3 h)+\frac{1}{32} \log \left (x^2+x+1\right ) (9 d-4 f+3 h)+\frac{x \left (x^2 (-(7 d-7 f+4 h))+2 d+3 f-h\right )}{24 \left (x^4+x^2+1\right )}+\frac{x \left (x^2 (-(d-2 f+h))+d+f-2 h\right )}{12 \left (x^4+x^2+1\right )^2}-\frac{\tan ^{-1}\left (\frac{1-2 x}{\sqrt{3}}\right ) (13 d+2 f+h)}{48 \sqrt{3}}+\frac{\tan ^{-1}\left (\frac{2 x+1}{\sqrt{3}}\right ) (13 d+2 f+h)}{48 \sqrt{3}}+\frac{\tan ^{-1}\left (\frac{2 x^2+1}{\sqrt{3}}\right ) (2 e-g+i)}{3 \sqrt{3}}+\frac{\left (2 x^2+1\right ) (2 e-g+i)}{12 \left (x^4+x^2+1\right )}+\frac{x^2 (2 e-g-i)+e-2 g+i}{12 \left (x^4+x^2+1\right )^2} \]
Antiderivative was successfully verified.
[In] Int[(d + e*x + f*x^2 + g*x^3 + h*x^4 + i*x^5)/(1 + x^2 + x^4)^3,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 115.85, size = 240, normalized size = 0.89 \[ \frac{x \left (6 d + 9 f - 3 h - x^{3} \left (18 e - 18 g + 12\right ) - x^{2} \left (21 d - 21 f + 12 h\right ) + x \left (6 e + 6 g\right )\right )}{72 \left (x^{4} + x^{2} + 1\right )} + \frac{x \left (d + f - 2 h - x^{3} \left (e - 2 g + 1\right ) - x^{2} \left (d - 2 f + h\right ) - x \left (- e - g + 2\right )\right )}{12 \left (x^{4} + x^{2} + 1\right )^{2}} - \left (\frac{9 d}{32} - \frac{f}{8} + \frac{3 h}{32}\right ) \log{\left (x^{2} - x + 1 \right )} + \left (\frac{9 d}{32} - \frac{f}{8} + \frac{3 h}{32}\right ) \log{\left (x^{2} + x + 1 \right )} + \frac{\sqrt{3} \left (13 d + 2 f + h\right ) \operatorname{atan}{\left (\sqrt{3} \left (\frac{2 x}{3} - \frac{1}{3}\right ) \right )}}{144} + \frac{\sqrt{3} \left (13 d + 2 f + h\right ) \operatorname{atan}{\left (\sqrt{3} \left (\frac{2 x}{3} + \frac{1}{3}\right ) \right )}}{144} + \frac{\sqrt{3} \left (2 e - g + 1\right ) \operatorname{atan}{\left (\sqrt{3} \left (\frac{2 x^{2}}{3} + \frac{1}{3}\right ) \right )}}{9} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((i*x**5+h*x**4+g*x**3+f*x**2+e*x+d)/(x**4+x**2+1)**3,x)
[Out]
_______________________________________________________________________________________
Mathematica [C] time = 2.22492, size = 325, normalized size = 1.21 \[ \frac{1}{144} \left (\frac{12 \left (-d x^3+d x+2 e x^2+e+2 f x^3+f x-g \left (x^2+2\right )-h x^3-2 h x-i x^2+i\right )}{\left (x^4+x^2+1\right )^2}+\frac{6 \left (-7 d x^3+2 d x+e \left (8 x^2+4\right )+7 f x^3+3 f x-2 g \left (2 x^2+1\right )-4 h x^3-h x+4 i x^2+2 i\right )}{x^4+x^2+1}-\frac{\tan ^{-1}\left (\frac{1}{2} \left (\sqrt{3}-i\right ) x\right ) \left (\left (7 \sqrt{3}-47 i\right ) d+\left (-7 \sqrt{3}+17 i\right ) f+2 \left (2 \sqrt{3}-7 i\right ) h\right )}{\sqrt{\frac{1}{6} \left (1+i \sqrt{3}\right )}}-\frac{\tan ^{-1}\left (\frac{1}{2} \left (\sqrt{3}+i\right ) x\right ) \left (\left (7 \sqrt{3}+47 i\right ) d-\left (7 \sqrt{3}+17 i\right ) f+2 \left (2 \sqrt{3}+7 i\right ) h\right )}{\sqrt{\frac{1}{6} \left (1-i \sqrt{3}\right )}}-16 \sqrt{3} \tan ^{-1}\left (\frac{\sqrt{3}}{2 x^2+1}\right ) (2 e-g+i)\right ) \]
Warning: Unable to verify antiderivative.
[In] Integrate[(d + e*x + f*x^2 + g*x^3 + h*x^4 + i*x^5)/(1 + x^2 + x^4)^3,x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.025, size = 454, normalized size = 1.7 \[ \text{result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((i*x^5+h*x^4+g*x^3+f*x^2+e*x+d)/(x^4+x^2+1)^3,x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 0.778989, size = 309, normalized size = 1.15 \[ \frac{1}{144} \, \sqrt{3}{\left (13 \, d - 32 \, e + 2 \, f + 16 \, g + h - 16 \, i\right )} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x + 1\right )}\right ) + \frac{1}{144} \, \sqrt{3}{\left (13 \, d + 32 \, e + 2 \, f - 16 \, g + h + 16 \, i\right )} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x - 1\right )}\right ) + \frac{1}{32} \,{\left (9 \, d - 4 \, f + 3 \, h\right )} \log \left (x^{2} + x + 1\right ) - \frac{1}{32} \,{\left (9 \, d - 4 \, f + 3 \, h\right )} \log \left (x^{2} - x + 1\right ) - \frac{{\left (7 \, d - 7 \, f + 4 \, h\right )} x^{7} - 4 \,{\left (2 \, e - g + i\right )} x^{6} + 5 \,{\left (d - 2 \, f + h\right )} x^{5} - 6 \,{\left (2 \, e - g + i\right )} x^{4} + 7 \,{\left (d - 2 \, f + h\right )} x^{3} - 4 \,{\left (4 \, e - 2 \, g + i\right )} x^{2} -{\left (4 \, d + 5 \, f - 5 \, h\right )} x - 6 \, e + 6 \, g - 4 \, i}{24 \,{\left (x^{8} + 2 \, x^{6} + 3 \, x^{4} + 2 \, x^{2} + 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((i*x^5 + h*x^4 + g*x^3 + f*x^2 + e*x + d)/(x^4 + x^2 + 1)^3,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 7.22812, size = 714, normalized size = 2.65 \[ \frac{\sqrt{3}{\left (3 \, \sqrt{3}{\left ({\left (9 \, d - 4 \, f + 3 \, h\right )} x^{8} + 2 \,{\left (9 \, d - 4 \, f + 3 \, h\right )} x^{6} + 3 \,{\left (9 \, d - 4 \, f + 3 \, h\right )} x^{4} + 2 \,{\left (9 \, d - 4 \, f + 3 \, h\right )} x^{2} + 9 \, d - 4 \, f + 3 \, h\right )} \log \left (x^{2} + x + 1\right ) - 3 \, \sqrt{3}{\left ({\left (9 \, d - 4 \, f + 3 \, h\right )} x^{8} + 2 \,{\left (9 \, d - 4 \, f + 3 \, h\right )} x^{6} + 3 \,{\left (9 \, d - 4 \, f + 3 \, h\right )} x^{4} + 2 \,{\left (9 \, d - 4 \, f + 3 \, h\right )} x^{2} + 9 \, d - 4 \, f + 3 \, h\right )} \log \left (x^{2} - x + 1\right ) + 2 \,{\left ({\left (13 \, d - 32 \, e + 2 \, f + 16 \, g + h - 16 \, i\right )} x^{8} + 2 \,{\left (13 \, d - 32 \, e + 2 \, f + 16 \, g + h - 16 \, i\right )} x^{6} + 3 \,{\left (13 \, d - 32 \, e + 2 \, f + 16 \, g + h - 16 \, i\right )} x^{4} + 2 \,{\left (13 \, d - 32 \, e + 2 \, f + 16 \, g + h - 16 \, i\right )} x^{2} + 13 \, d - 32 \, e + 2 \, f + 16 \, g + h - 16 \, i\right )} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x + 1\right )}\right ) + 2 \,{\left ({\left (13 \, d + 32 \, e + 2 \, f - 16 \, g + h + 16 \, i\right )} x^{8} + 2 \,{\left (13 \, d + 32 \, e + 2 \, f - 16 \, g + h + 16 \, i\right )} x^{6} + 3 \,{\left (13 \, d + 32 \, e + 2 \, f - 16 \, g + h + 16 \, i\right )} x^{4} + 2 \,{\left (13 \, d + 32 \, e + 2 \, f - 16 \, g + h + 16 \, i\right )} x^{2} + 13 \, d + 32 \, e + 2 \, f - 16 \, g + h + 16 \, i\right )} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x - 1\right )}\right ) - 4 \, \sqrt{3}{\left ({\left (7 \, d - 7 \, f + 4 \, h\right )} x^{7} - 4 \,{\left (2 \, e - g + i\right )} x^{6} + 5 \,{\left (d - 2 \, f + h\right )} x^{5} - 6 \,{\left (2 \, e - g + i\right )} x^{4} + 7 \,{\left (d - 2 \, f + h\right )} x^{3} - 4 \,{\left (4 \, e - 2 \, g + i\right )} x^{2} -{\left (4 \, d + 5 \, f - 5 \, h\right )} x - 6 \, e + 6 \, g - 4 \, i\right )}\right )}}{288 \,{\left (x^{8} + 2 \, x^{6} + 3 \, x^{4} + 2 \, x^{2} + 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((i*x^5 + h*x^4 + g*x^3 + f*x^2 + e*x + d)/(x^4 + x^2 + 1)^3,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((i*x**5+h*x**4+g*x**3+f*x**2+e*x+d)/(x**4+x**2+1)**3,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.267752, size = 344, normalized size = 1.28 \[ \frac{1}{144} \, \sqrt{3}{\left (13 \, d + 2 \, f + 16 \, g + h - 16 \, i - 32 \, e\right )} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x + 1\right )}\right ) + \frac{1}{144} \, \sqrt{3}{\left (13 \, d + 2 \, f - 16 \, g + h + 16 \, i + 32 \, e\right )} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x - 1\right )}\right ) + \frac{1}{32} \,{\left (9 \, d - 4 \, f + 3 \, h\right )}{\rm ln}\left (x^{2} + x + 1\right ) - \frac{1}{32} \,{\left (9 \, d - 4 \, f + 3 \, h\right )}{\rm ln}\left (x^{2} - x + 1\right ) - \frac{7 \, d x^{7} - 7 \, f x^{7} + 4 \, h x^{7} + 4 \, g x^{6} - 4 \, i x^{6} - 8 \, x^{6} e + 5 \, d x^{5} - 10 \, f x^{5} + 5 \, h x^{5} + 6 \, g x^{4} - 6 \, i x^{4} - 12 \, x^{4} e + 7 \, d x^{3} - 14 \, f x^{3} + 7 \, h x^{3} + 8 \, g x^{2} - 4 \, i x^{2} - 16 \, x^{2} e - 4 \, d x - 5 \, f x + 5 \, h x + 6 \, g - 4 \, i - 6 \, e}{24 \,{\left (x^{4} + x^{2} + 1\right )}^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((i*x^5 + h*x^4 + g*x^3 + f*x^2 + e*x + d)/(x^4 + x^2 + 1)^3,x, algorithm="giac")
[Out]